package com.heima.book_system;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Book> list = new ArrayList<>();
        BookStore bookStore = new BookStore(list);
        Book b1 = new Book("平凡的世界", "路遥", 100);
        Book b2 = new Book("兄弟", "余华", 100);
        Book b3 = new Book("许三观卖血记", "余华", 100);
        Book b4 = new Book("鬼吹灯之精绝古城", "天下霸唱", 100);
        bookStore.addBook(b1);
        bookStore.addBook(b2);
        bookStore.addBook(b3);
        bookStore.addBook(b4);
        bookStore.displayBooks();
        bookStore.calculateTotalPrice();

    }
}
